package com.andy.eqm.server.entity;

public class UsrGameLog extends BaseEntity{

	private static final long serialVersionUID = 1L;

	public UsrGameLog() {
	}
	
	public UsrGameLog(Long id) {
		super(id);
	}
	
	public UsrGameLog(UsrGameInfo gameInfo) {
		this.setCoin(gameInfo.getCoin());
		this.setUid(gameInfo.getUid());
	}

	private Long uid;
	private Long coin;
	private Integer addCoin = 0; // 赢得金币
	private Integer lostCoin; // 消耗金币
	
	private Integer scriptId = 0;
	private Integer rate = 0;
	
	private int battary = -1; // 获得的炮台
	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public Long getCoin() {
		return coin;
	}

	public void setCoin(Long coin) {
		this.coin = coin;
	}


	public static String table() {
		return "usr_game_log";
	}

	public Integer getAddCoin() {
		return addCoin;
	}

	public void setAddCoin(Integer addCoin) {
		this.addCoin = addCoin;
	}

	public Integer getLostCoin() {
		return lostCoin;
	}

	public void setLostCoin(Integer lostCoin) {
		this.lostCoin = lostCoin;
	}

	public Integer getRate() {
		return rate;
	}

	public void setRate(Integer rate) {
		this.rate = rate;
	}

	public Integer getScriptId() {
		return scriptId;
	}

	public void setScriptId(Integer scriptId) {
		this.scriptId = scriptId;
	}

	public int battary(){
		return battary;
	}
	public void battary(int battary){
		this.battary = battary;
	}
	
}
